/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __PQ_ServerSocket_H__
#define __PQ_ServerSocket_H__

#include "PQNet.h"
#include "TCPSocket.h"

namespace PQServiceCore
{
	class ServerSocket
	{
	public:
		ServerSocket(int port,int backlog=5);
		void setNonBlocking();
		inline SOCKET getSocketHandle() { return _socket->getSocketHandle(); }

	protected:
		PQNet::TCPSocket* _socket;

	};

}
#endif
